package com.xxx.mail;


import com.xxx.pojo.MailConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author WXH
 * @version 1.0
 * @program:云E办项目
 * @date 2022/5/6 19:39
 * @description: 主程序,启动类
 */

@SpringBootApplication(exclude ={DataSourceAutoConfiguration.class})
public class MailApplication {
    public static void main(String[] args) {
        SpringApplication.run(MailApplication.class,args);
    }
    @Bean
    public Queue queue(){
        return new Queue("mail.welcome.");
    }

}
